﻿<?php
error_reporting(0);
define('IN_QY',true);
session_start();
require("include/common.inc.php");
define('SCRIPT','ad_list');
if(!$_COOKIE['userid']){
      echo "<script type='text/javascript'>location.href='/wap/mlogin.php';</script>";
      exit;
}

	$sqlt = "SELECT * from tbl_tenred  where uid='".$_COOKIE['userid']."' ";
    $queryt=mysql_query($sqlt);
    $rowt=mysql_fetch_array($queryt);
if( $rowt){
$saohb=	$rowt['money'];	
}else{
$saohb=	0.00;		
}
//
$sqlu = "select * from tbl_user where id=".$_COOKIE['userid'];
$queryu=mysql_query($sqlu);
$rowu=mysql_fetch_array($queryu);
$jifen = $rowu['jifen'];
$yuee = $rowu['yuee']+$rowu['cash_back']+$saohb;
$xyf = $rowu['xyf'];
$vip = $rowu['vip'];
$touxiang = $rowu['username'];

$timestamp = strtotime($rowu['vipexpire']);

$sqlvip = "select * from tbl_vip_record where uid='".$_COOKIE['userid']."' order by id desc limit 1 ";
$queryvip=mysql_query($sqlvip);
$rowvip=mysql_fetch_array($queryvip);	
$huiyaundaoqi =$rowvip['end_vip_date'];	
$zero1=date("y-m-d");
 if(strtotime($zero1)<strtotime($huiyaundaoqi)){	

$daoqi=1;

 }

$sqla = "select count(*) as cc from tbl_spp where userid='".$_COOKIE['username']."'";
$querya=mysql_query($sqla);
$rowa=mysql_fetch_array($querya);
$s = $rowa['cc'];
//查成交量
$sqlb = "select count(*) as dd from tbl_spp where content='该商品已卖' AND userid='".$_COOKIE['username']."'";
$queryb=mysql_query($sqlb);
$rowb=mysql_fetch_array($queryb);
$chengjiaoliang = $rowb['dd'];  //成交量
//优惠卷
$sqlyhj = "select sum(shuliang) as dy from tbl_yhq where state=1 and userid='".$_COOKIE['userid']."'";
$queryyhj=mysql_query($sqlyhj);
$rowyhj=mysql_fetch_array($queryyhj);
$tjyhj = $rowyhj['dy'];  //youhuij
//用户数据查询开始
$sqlm = "select * from tbl_tutu where userid=".$_COOKIE['userid'];
$querym=mysql_query($sqlm);
$rowm=mysql_fetch_array($querym);
$gxqm=$rowm['content'];
//if($rowm['youx']!=1){
 //   echo "<script type='text/javascript'>alert('请先填写下您的个人资料.让更多的朋友知道您');location.href='xgziliao.php';</script>";
 //   exit;
//}
//发货5天自动收货并加卖家余额



$sqlsm = "select * from tbl_shiming where userid=".$_COOKIE['userid'];
$querysm=mysql_query($sqlsm);
$rowsm=mysql_fetch_array($querysm);

    $now = date("Y-m-d",time());
    $sqlqian = "select * from tbl_zhangdan where username=".$_COOKIE['userid']." and date_format(time,'%Y-%m-%d') = '$now'  AND title = '网站登录'  ";
    $queryqian = mysql_query($sqlqian);
    $resqian = mysql_fetch_array($queryqian);




?>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title><?=$_COOKIE['shuyu']?>/个人中心-众晒网</title>
    <link href="/ui/css/Hui.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        #header{width:100%; position:absolute; top:0;}
        #footer{width:100%; position:absolute; bottom:0;}
        #main{width:100%; overflow: auto; position:absolute; top:43px;bottom:55px;}
				.layui-m-layerchild.layui-m-anim-up {
    		background-image: url(images/112.png);
    		background-size: cover;
			}
			.layui-m-layerchild {
			    background-color: rgba(255, 255, 255, 0);
			    border: 0;
                box-shadow: 0 0 8px rgba(0, 0, 0, 0);
			}
            .H-theme-background-color4-active.H-header-title.H-center-all.H-font-size-18.H-text-show-row-1.H-theme-font-color-white.H-position-absolute.H-width-100-percent {
                background: -webkit-linear-gradient(left, #ff9347 , #ff5e00);
            }
			.touxiang{
                width: 90%;
                height: 120px;
                margin: -77px auto;
                position: inherit;
                margin-top: -100px;
                margin-left: 17px;
                z-index: 0;
                background: #fff;
                border-radius: 7px;
                box-shadow: 0 5px 17px #c7c7c7;
            }
			
			.aui-flex-box-hd img {
                width: 55px;
			    max-height: 100%;
			    vertical-align: top;
			    border-radius: 100%;
			    border: 2px solid #fff;
			    margin-top: -20px;
			    margin-left: 15px;
            }
            .aui-flex-box-bd h2 {
            font-weight: 400;
            font-size: 0.9rem;
            width: auto;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            word-wrap: normal;
            word-wrap: break-word;
            word-break: break-all;
            color: #333;
            padding-bottom: 10px;
        }
        .aui-flex-box-bd p {
            color: #1d1d1d;
            font-size: 0.6rem;
            line-height: 1.2;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 1;
        }	
        .aui-flex-box-bd h2 {
            font-weight: 400;
            font-size: 2rem;
            padding-bottom: 0px;
        }
        .aui-flex-box-bd {
            margin-top: -136px;
        }
        .qiandao {
		    border-radius: 21px;
		    width: 83px;
		    background: #ffa200;
		    border: 1px solid #ffa200;
		    color: white;
		    font-weight: 400;
		    font-size: 14px;
		    position: inherit;
		    margin: 0 auto;
		    
		    margin-top: 22%;
		    height: 30px;
        }
        .aui-flex-box-fr {
            width: 60px;
            margin-left: 30px;
            margin-top: -110px;
        }
        .aui-flex-box-hy{
            float: left;
            width: 90px;
            z-index: 2;
            position: inherit;
            margin-left: -240px;
            margin-top: -10px;
        }
         .aui-flex-box-jf{
                float: right;
                width: 90px;
                z-index: 2;
                position: inherit;
                margin-left: 60px;
                margin-top: -10px;
         }
         .H-header-title, .H-header .H-icon {
            height: 52px;
        }
        #nav{

            /*盒模型*/

            display: -webkit-box;

            display: -moz-box;

            display: box;

            height: 60%;

        }



        #nav {

            -webkit-box-orient: horizontal;

            -moz-box-orient: horizontal;

            box-orient: horizontal;

        }

        


        #nav div {

            /*占有比例*/

            -webkit-box-flex: 1;

            -moz-box-flex: 1;

            box-flex: 1;

            font-size:12px;

            color:#000;

        }

		 #nav2{

            /*盒模型*/

            display: -webkit-box;
		    display: -moz-box;
		    display: box;
		    height: 40%;
		    background-image: url(/ui/image/dbg.png);
		    background-size: 106%;
		    background-position: 0px 60px;
            background-position-x: -9px;

        }



        #nav2 {

            -webkit-box-orient: horizontal;

            -moz-box-orient: horizontal;

            box-orient: horizontal;

        }

        


        #nav2 div {

            /*占有比例*/

            -webkit-box-flex: 1;

            -moz-box-flex: 1;

            box-flex: 1;



            text-align:center;

            font-size:12px;

            color:#000;

        }

        #box1 {
			width: 10%;
        }

        #box2 {
			width: 27%;
        }

        #box3 {

           width: 15%;

        }
        #box4 {

           margin-top: 15px;

        }
        #box5 {

            margin-top: 15px;

        }
       button.qiandao :focus {
		    outline: -webkit-focus-ring-color auto 5px;
		    border-radius: 21px;
		    width: 83px;
		    background: #ffa200;
		    border: 1px solid #ffa200;
		}
    </style>
</head>
<body>
    <header class="H-header H-theme-background-color9" id="header">
	<!-------------------
        <span tapmode="" onclick="H.closeWin();" class="H-icon H-position-relative H-display-inline-block H-float-left H-vertical-middle H-theme-font-color-white H-padding-horizontal-left-5 H-z-index-100"><i class="H-iconfont H-icon-arrow-left H-font-size-18 H-vertical-middle"></i></span>
	------------------>	
        <div class="H-theme-background-color4-active H-header-title H-center-all H-font-size-18 H-text-show-row-1 H-theme-font-color-white H-position-absolute H-width-100-percent" style="background-color:#fd7c42"></div>
        <div  tapmode="" onclick="H.openWin('setting', 'setting.php');">
        <span tapmode="" onclick="H.closeWin();" class="H-icon H-position-relative H-display-inline-block H-float-left H-vertical-middle H-theme-font-color-white H-padding-horizontal-left-5 H-z-index-100"><i class="H-iconfont H-icon-arrow-left H-font-size-18 H-vertical-middle"></i><label class="H-display-block H-vertical-middle H-font-size-15"></label></span>
        <div class="H-header-title H-center-all H-font-size-18 H-text-show-row-1 H-theme-font-color-white H-position-absolute H-width-100-percent">
            个人中心
        </div>
         <span class="H-icon H-position-relative H-display-inline-block H-float-right H-vertical-middle H-theme-font-color-white H-padding-horizontal-right-10 H-z-index-100"><i class="H-iconfont H-icon-setting H-font-size-18 H-vertical-middle"></i></span>
        </div>
    </header>

    <div id="main">
        <div style="width: 100%; height: 160px; margin: 0 auto; background: -webkit-linear-gradient(left, #ff9347, #ff5e00);"></div>


        <div class="touxiang">
			<div id="nav">
				<div id="box1">
					<div onclick="H.openWin('xiugaitoux', 'xiugaitoux.php')" class="aui-flex-box-hd">
                    	<img src=" <?=$touxiang?>" alt="">
                	</div>
				</div>

		        <div id="box2">
					<h3 style="overflow: hidden;text-overflow:ellipsis;white-space: nowrap;"> <?=$rowu['shuyu']?></h3>
					

					<?php if($daoqi==1){ ?>
					
		            <p style="font-weight: 600;font-size: 12px;"> VIP有效期：<?=$huiyaundaoqi?></p>
					<?php } ?>
		        </div>

		        <div id="box3">
				
				
					<?php if(!$resqian){ ?>
					<button id="weiqiandao" onclick="H.openWin('qiandao', 'qiandao.php')" class="qiandao">签到</button>
					<?php } ?>
					<?php if($resqian){ ?>
                    <button id="yiqiandao" onclick="H.openWin('qiandao', 'qiandao.php')"  class="qiandao" style="background: #bdbdbd; border: 1px solid #bdbdbd; /*display: none;*/">已签到</button>
					<?php } ?>
		        </div>
			</div>
			<div id="nav2">
				<div id="box4"  onclick="H.openWin('cwvip1', 'cwvip1.php')"><img src="/ui/image/hyt.png" style="width: 14px;"><span>&nbsp;&nbsp;&nbsp;我的会员</span></div>

		        <div id="box5" onclick="H.openWin('jifen4', 'jifen4.php')"><img src="/ui/image/jft.png"  style="width: 14px;"><span>&nbsp;&nbsp;&nbsp;积分兑换</span></div>
			</div>
        </div>
         <div class="H-flexbox-horizontal H-text-align-center H-theme-background-color-white background H-padding-vertical-both-10" style="padding-top: 45px;">
        <div class="H-flex-item" onclick="H.openWin('jf', 'jf.php');">
            <span class="H-icon H-center-all  H-border-radius-15 H-margin-horizontal-auto" style="height: 42px; width: 42px; "><img height="42px" width="42px" src="/ui/image/jifen.png"></span>
            <label class="H-display-block H-font-size-17 H-margin-vertical-top-5 H-theme-font-color4-active"><?=$jifen?>分</label>
            <label class="H-display-block H-font-size-13 H-margin-vertical-top-5">积分</label>
        </div>
        <div class="H-flex-item" onclick="H.openWin('xinyongfen', 'xinyongfen.php');">
            <span class="H-icon H-center-all  H-border-radius-15 H-margin-horizontal-auto" style="height: 42px; width: 42px; "><img height="42px" width="42px" src="/ui/image/xinyongfen.png"></span>
            <label class="H-display-block H-font-size-17 H-margin-vertical-top-5 H-theme-font-color4-active"><?php echo $xyf?>分</label>
            <label class="H-display-block H-font-size-13 H-margin-vertical-top-5">信用分</label>
        </div>
        <div class="H-flex-item" onclick="H.openWin('yue', 'yue.php');">
            <span class="H-icon H-center-all  H-border-radius-15 H-margin-horizontal-auto" style="height: 42px; width: 42px; "><img height="42px" width="42px" src="/ui/image/yue.png"></span>
            <label class="H-display-block H-font-size-17 H-margin-vertical-top-5 H-theme-font-color4-active"><?=$yuee?>元</label>
            <label class="H-display-block H-font-size-13 H-margin-vertical-top-5">余额</label>
        </div>
        <div class="H-flex-item" onclick="H.openWin('youhuiquan', 'youhuiquan.php');">
            <span class="H-icon H-center-all  H-border-radius-15 H-margin-horizontal-auto" style="height: 42px; width: 42px; "><img height="42px" width="42px" src="/ui/image/youhuiquan.png"></span>
            <label class="H-display-block H-font-size-17 H-margin-vertical-top-5 H-theme-font-color4-active">
			<?php if($rowyhj['dy']==''){ ?>
	        0
			<?php } ?>
			<?=$tjyhj?>张
				  </label>
            <label class="H-display-block H-font-size-13 H-margin-vertical-top-5">优惠券</label>
        </div>
    </div>


<div class="H-n-grid H-border-vertical-top-after H-clear-both  H-overflow-auto">
        <div class="H-clear-both H-width-100-percent H-display-table H-box-sizing-border-box">
            <div class="H-display-table-cell H-float-left H-box-sizing-border-box H-width-avg-3 H-center-all H-theme-background-color-white H-border-horizontal-right-after H-border-vertical-bottom-after H-padding-vertical-both-10" style="min-height: 100px;">
                <div tapmode="" onclick="H.openWin('all', 'all.php');">
                    <span class="H-icon H-display-block H-horizontal-center">
                    <img  style="width: 33px;height: 33px" src="/ui/image/我的订单-4.png" alt=""></span>
                    <label class="H-display-block H-font-size-13">我的订单</label>
                </div>
            </div>
            <div tapmode="" onclick="H.openWin('mymuyinglist', 'mymuyinglist.php');" class="H-display-table-cell H-float-left H-box-sizing-border-box H-width-avg-3 H-center-all H-theme-background-color-white H-border-horizontal-right-after H-border-vertical-bottom-after H-padding-vertical-both-10" style="min-height: 100px;">
                <div >
                    <span class="H-icon H-display-block H-horizontal-center">
                    <img  style="width: 33px;height: 33px" src="/ui/image/发布-2.png" alt=""></span>
                    <label class="H-display-block H-font-size-13">商品发布</label>
                </div>
            </div>
			
			<!------

		    <div tapmode="" onclick="H.openWin('myxianzhi', 'myxianzhi.php');" class="H-display-table-cell H-float-left H-box-sizing-border-box H-width-avg-3 H-center-all H-theme-background-color-white H-border-horizontal-right-after H-border-vertical-bottom-after H-padding-vertical-both-10" style="min-height: 100px;">
                <div >
                    <span class="H-icon H-display-block H-horizontal-center">
                    <img  style="width: 33px;height: 33px" src="/ui/image/fahuo@3x.png" alt=""></span>
                    <label class="H-display-block H-font-size-13">发货管理</label>
                </div>
            </div>	
			
			------>

			
			
			<div tapmode="" onclick="H.openWin('renzhengbaozhang', 'renzhengbaozhang.php');" class="H-display-table-cell H-float-left H-box-sizing-border-box H-width-avg-3 H-center-all H-theme-background-color-white H-border-horizontal-right-after H-border-vertical-bottom-after H-padding-vertical-both-10" style="min-height: 100px;">
                <div >
                    <span class="H-icon H-display-block H-horizontal-center">
                    <img  style="width: 33px;height: 33px" src="/ui/image/认证-2.png" alt=""></span>
                    <label class="H-display-block H-font-size-13">认证中心</label>
                </div>
            </div>
			
			<!------
            <div onclick="H.openWin('xiaoxi', 'xiaoxi.php');" class="H-display-table-cell H-float-left H-box-sizing-border-box H-width-avg-3 H-center-all H-theme-background-color-white H-border-horizontal-right-after H-border-vertical-bottom-after H-padding-vertical-both-10" style="min-height: 100px;">
                <div >
                    <span class="H-icon H-display-block H-horizontal-center"><img  style="width: 25px;height: 25px" src="/ui/image/消息管理.png" alt=""></span>
                    <label class="H-display-block H-font-size-13">消息管理</label>
                </div>
            </div>
------------->
			<div onclick="H.openWin('myarticle', 'myarticle.php');" class="H-display-table-cell H-float-left H-box-sizing-border-box H-width-avg-3 H-center-all H-theme-background-color-white H-border-horizontal-right-after H-border-vertical-bottom-after H-padding-vertical-both-10" style="min-height: 100px;">
                <div>
                    <span class="H-icon H-display-block H-horizontal-center"><img  style="width: 33px;height: 33px" src="/ui/image/文章-2.png" alt=""></span>
                    <label class="H-display-block H-font-size-13">文章发布</label>
                </div>
            </div>
			<div onclick="H.openWin('yaoqing', 'yaoqing.php?uid=kdhgisughteotuertuertryrtuerterywrurtuwurtuwueryrturtuwuttwukdhgisughteotuertuertryrtuerterywrurtuwurtuwueryrturtuwuttwu&fid=<?=$_COOKIE['username']?>');" class="H-display-table-cell H-float-left H-box-sizing-border-box H-width-avg-3 H-center-all H-theme-background-color-white 
             H-border-horizontal-right-after H-border-vertical-bottom-after H-padding-vertical-both-10" style="min-height: 100px;">
                <div>
                    <span class="H-icon H-display-block H-horizontal-center"><img  style="width: 33px;height: 33px" src="/ui/image/邀请的副本.png" alt=""></span>
                    <label class="H-display-block H-font-size-13">邀请好友</label>
                </div>
            </div>

            <div onclick="H.openWin('dianpuguanli', '/haigou/htgwc.php');" class="H-display-table-cell H-float-left H-box-sizing-border-box H-width-avg-3 H-center-all H-theme-background-color-white 
             H-border-horizontal-right-after H-border-vertical-bottom-after H-padding-vertical-both-10" style="min-height: 100px;">
                <div>
                    <span class="H-icon H-display-block H-horizontal-center"><img  style="width: 33px;height: 33px" src="/ui/image/购物车-2.png" alt=""></span>
                    <label class="H-display-block H-font-size-13">购物车</label>
                </div>
            </div>	
			
			<div onclick="H.openWin('dianpuguanli', 'dianpuguanli.php');" class="H-display-table-cell H-float-left H-box-sizing-border-box H-width-avg-3 H-center-all H-theme-background-color-white 
             H-border-horizontal-right-after H-border-vertical-bottom-after H-padding-vertical-both-10" style="min-height: 100px;">
                <div>
                    <span class="H-icon H-display-block H-horizontal-center"><img  style="width: 33px;height: 33px" src="/ui/image/店铺管理.png" alt=""></span>
                    <label class="H-display-block H-font-size-13">店铺管理</label>
                </div>
            </div>			
			
            <div onclick="_MEIQIA('showPanel')"  class="H-display-table-cell H-float-left H-box-sizing-border-box H-width-avg-3 H-center-all H-theme-background-color-white 
             H-border-horizontal-right-after H-border-vertical-bottom-after H-padding-vertical-both-10 " style="min-height: 100px;">
                <div class="999">
                    <span class="H-icon H-display-block H-horizontal-center"><img  style="width: 33px;height: 33px" src="/ui/image/客服.png" alt=""></span>
                    <label class="H-display-block H-font-size-13">客服中心</label>
                </div>
            </div>
		<!-----	
            <div onclick="H.openWin('qiehuan', 'qiehuanmb.php');" class="H-display-table-cell H-float-left H-box-sizing-border-box H-width-avg-3 H-center-all H-theme-background-color-white H-border-horizontal-right-after H-border-vertical-bottom-after H-padding-vertical-both-10" style="min-height: 100px;">
                <div>
                    <span class="H-icon H-display-block H-horizontal-center"><img  style="width: 25px;height: 25px" src="/ui/image/muban2.png" alt=""></span>
                    <label class="H-display-block H-font-size-13">切换模板</label>
                </div>
            </div>

            <div onclick="H.openWin('zmwap', 'zmwap.php');" class="H-display-table-cell H-float-left H-box-sizing-border-box H-width-avg-3 H-center-all H-theme-background-color-white H-border-horizontal-right-after H-border-vertical-bottom-after H-padding-vertical-both-10" style="min-height: 100px;">
                <div>
                    <span class="H-icon H-display-block H-horizontal-center"><img  style="width: 33px;height: 33px" src="/ui/image/芝麻信用.png" alt=""></span>
                    <label class="H-display-block H-font-size-13">芝麻信用</label>
                </div>
            </div>	

				-------->		
			
			
            <div onclick="H.openWin('mycommodity', 'mycommodity.php');" class="H-display-table-cell H-float-left H-box-sizing-border-box H-width-avg-3 H-center-all H-theme-background-color-white H-border-horizontal-right-after H-border-vertical-bottom-after H-padding-vertical-both-10" style="min-height: 100px;">
                <div>
                    <span class="H-icon H-display-block H-horizontal-center"><img  style="width: 33px;height: 33px" src="/ui/image/关注.png" alt=""></span>
                    <label class="H-display-block H-font-size-13">我的关注</label>
                </div>
            </div>
			
            <div onclick="H.openWin('suggest', 'suggest.php');" class="H-display-table-cell H-float-left H-box-sizing-border-box H-width-avg-3 H-center-all H-theme-background-color-white H-border-horizontal-right-after H-border-vertical-bottom-after H-padding-vertical-both-10" style="min-height: 100px;">
                <div>
                    <span class="H-icon H-display-block H-horizontal-center"><img style="width: 33px;height: 33px" src="/ui/image/反馈.png" alt=""></span>
                    <label class="H-display-block H-font-size-13">反馈问题</label>
                </div>
            </div>	
			
			<div onclick="H.openWin('tpguanli', 'tpguanli.php');" class="H-display-table-cell H-float-left H-box-sizing-border-box H-width-avg-3 H-center-all H-theme-background-color-white H-border-horizontal-right-after H-border-vertical-bottom-after H-padding-vertical-both-10" style="min-height: 100px;">
                <div>
                    <span class="H-icon H-display-block H-horizontal-center"><img  style="width: 33px;height: 33px" src="/ui/image/toupiao@3x.png" alt=""></span>
                    <label class="H-display-block H-font-size-13">投票管理</label>
                </div>
            </div>
			
            <div onclick="H.openWin('gengduo', 'gengduo.php');" class="H-display-table-cell H-float-left H-box-sizing-border-box H-width-avg-3 H-center-all H-theme-background-color-white H-border-horizontal-right-after H-border-vertical-bottom-after H-padding-vertical-both-10" style="min-height: 100px;">
                <div >
                    <span class="H-icon H-display-block H-horizontal-center"><img  style="width: 33px;height: 33px" src="/ui/image/更多.png" alt=""></span>
                    <label class="H-display-block H-font-size-13">更多</label>
                </div>
            </div>
       <div class="H-padding-vertical-bottom-20"></div>
        </div>
	   <div class="H-padding-vertical-bottom-20"></div>
    </div>
    </div>
	  <!--################### 底部开始线 ###################-->
    <?include('footer.php');?>
     <!--################################底部结束################################--> 
    <script src="/ui/script/H.js" type="text/javascript"></script>
	<script src="/ui/js/jquery-2.1.3.min.js"></script>
    <script type="text/javascript" src="/ui/layer/mobile/layer.js"></script> 
   					 <?php
		 
		 // 是否微信中打开
function is_weixin() {
   if (strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') !== false) {
       return true;
    } return false;
 }
 $is_weixin = (is_weixin() == true) ? "1" : "2";	
 
$sqlwxid = "select wxopenid from tbl_user where id=".$_COOKIE['userid'];
$querywxid=mysql_query($sqlwxid);
$rowwxid=mysql_fetch_array($querywxid);
 
 ?>	
   <?php
 if(strlen($rowwxid['wxopenid'])<10){
?> 
 
  <?php
 if($is_weixin==1){
	 	?> 
    <script type='text/javascript'>
 
  //底部对话框
  layer.open({
  title: [
    '',
    'background-color:#8DCE1600; color:#8DCE1600;'
  ]
  
  ,anim: 'up'
  ,content: '是否去绑定微信登录'
  ,btn: ['取消','']
  ,no: function(index){
  window.location.href="wxauth1.php";
  layer.close(index)
} 
  
  
});

</script>

  <?php } ?>
  <?php } ?>
<style type="text/css">
.layui-m-layerbtn {
    display: box;
    display: -moz-box;
    display: -webkit-box;
    width: 100%;
    height: 50px;
    line-height: 50px;
    font-size: 0;
    border-top: 1px solid #d0d0d000;
    background-color: #f2f2f200;
}
.layui-m-layerbtn span[no] {
    border-right: 1px solid #d0d0d000;
    border-radius: 0 0 0 5px;
}
.layui-m-layerbtn {
                border-top: 1px solid rgba(208, 208, 208, 0);
                background-color: rgba(242, 242, 242, 0);
            }
            .layui-m-layerbtn span[no] {
            border-right: 0px;
            border-radius: 0 0 0 5px;
            color: #FFF;
            background-image:url(images/11.png) ;
            background-size: cover;
            border-right: 1px solid #d0d0d000;
            
            }
            .layui-m-layerbtn span[yes] {
            color: #C6C6C6;
            float: left;
            position: fixed;
            top: 71px;
            right: 11px;
            }
            .layui-m-layerbtn span {
                font-size: 16px;
            }
            
            .layui-m-layer0 .layui-m-layerchild {
                width: 93%;
                max-width: 640px;
                   background-color: rgba(255, 255, 255, 0);
            }   
            .layui-m-layerbtn {
            border-top: 1px solid #d0d0d000;
            background-color: #f2f2f200;
            }

</style>
  






  
</body>
</html>